package sctu.edu.java.year2016.team07.nieying.practice.dishizhang;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2016/6/1 0001.
 */
public class MapDeom {

    public static void main(String args[]){

        Map<String,String> map=new HashMap<>();

        map.put("1","apple");

        map.put("2","pear");

        map.put("3","orange");

        for(int i=1;i<=3;i++){

            System.out.println("第"+i+"元素是"+map.get(""+i+""));

        }
    }
}
